package com.cc8w.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;


/**
 * 目标对象的增强切面
 * @author Administrator
 *
 */

@Aspect
@Component
public class LoginAspect {

    @Before("execution(public * com.cc8w.admin.controller.LoginController.doLogin(..))")
    public void before() {
            System.out.println("doLogin-controller-before前置增强切面...");
    }

    @After("execution( * com.cc8w.admin.service.UserService.getUserAll(..))")
    public void after() {
            System.out.println("doLogin-service-after增强切面...");
    }

}
